#!/bin/sh

set -e
set -u

# Import no_abort()
. /usr/local/lib/tails-shell-library/common.sh

# Get LANG
. /etc/default/locale

export LANG

(
xhost +SI:localuser:onioncircuits
no_abort sudo -u onioncircuits \
     /usr/bin/lckdo /var/lock/onioncircuits \
     /usr/bin/onioncircuits
xhost -SI:localuser:onioncircuits
exit ${_NO_ABORT_RET}
) &

